package day02;

public class Demo02 {

	public static void main(String[] args) {

		String reg="\\d{17}[\\dXx]";
		String code="12580864790853575X";
		
		boolean b=code.matches(reg);
		System.out.println(b);
		
		
		
		
	}

}
